package com.example.demo.zhoushengwen.controller;


import com.example.demo.zhoushengwen.Entity.User;
import com.example.demo.zhoushengwen.response.CommonCode;
import com.example.demo.zhoushengwen.response.ResponseResult;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

//返回结果集测试:   localhost:8080/response/test

//  localhost:8080/i18n/test

//http://localhost:8080/index.html
//7、记录返回的信息，采用国际化的返回方式，设置示例，中文及英文
@Controller
public class I18NController {

    @RequestMapping("/index.html")
    public String login() {
        return "user/login";
    }

}
